#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef char ElemType;
typedef struct LinkListQueueNode
{
	ElemType data;
	struct LinkListQueueNode* next;
}LQNode;
typedef struct LinkListQueue
{
	struct LinkListQueueNode* front;
	struct LinkListQueueNode* rear;
}ListQueue;

void InitQueue(ListQueue** q);
void enQueue(ListQueue* q, ElemType e);
bool QueueEmpty(ListQueue* q);
bool deQueue(ListQueue* q, ElemType* e);
void DestroyQueue(ListQueue* q);